<script setup>
defineOptions({
  name: 'IconView',
});
import { useCopy } from '@/hooks/useCopy';
const { copyToClipboard } = useCopy();
const handleClick = async (className) => {
  await copyToClipboard(className, {
    successMessage: '图标类名已复制',
    errorMessage: '复制失败，请手动复制',
  });
};

</script>

<template>
  <div class="p-4 wh-full">
    <y-icon-view @click="handleClick"></y-icon-view>

  </div>
</template>
